/*
 * Copyright 2022 FA-Software (Shanghai) Co., Ltd. All Rights Reserved.
 *
 * Licensed under the FA-Software License, Version 1.0;
 * https://www.fa-software.com/licenses/LICENSE-1.0
 */
package com.eric.study.reactor.commons.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Builder;
import lombok.Getter;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * $该文件的目的、用途、逻辑等信息描述，文件生成后必须手动替换
 *
 * <p>
 * change history:
 *
 * <pre>
 * date         defect       person          comments
 * --------------------------------------------------------------------------------
 * 2023/6/8    ********     Qiheng Zhang    create file.
 * </pre>
 *
 * @author Qiheng Zhang
 * @date 2023/6/8 09:20
 * @copyright 2023, FA Software (Shanghai) Co., Ltd. All Rights Reserved.
 * @since 1.0.0
 */
@Builder
@Getter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResponseError implements Serializable {

    @Serial
    private static final long serialVersionUID = -5249719654713584249L;

    /**
     * 系统错误提示消息
     */
    private String system;

    /**
     * 业务异常错误消息
     */
    private List<BusinessError> business;

    /**
     * 其它错误信息
     */
    private List<ValidationError> validation;

}
